package smoker.client;

import java.util.*;

import smoker.tools.*;

public interface IClientCenter {
	public void login(String loginName, String password);
	
	public void onLoginResult(RadiateData data);
	
	public Vector<Department> getDptName();
	
	public Vector<User> getOnLineUser();
	
	public void sendMessage(int recevicerID, String msg, String dateTime);
	
	public void reciveMessage(ChatInfo chatInfo);
	
	public void onLineInfromAboutAllUser(User user);
	
	public void offLineInfromAboutAllUser(User offLineUser);
	
	public void offLineAndCloseSocket();
	
	public void delOffLineUserNode(User delOffUser);
	
	public User getCurrentUser();
	
	public boolean connServer();
	
	public String getServerIP();

	public int getPort();
	
	public void setServerInfo(String serverIP, int port);
	
	public void theUserIsExist();
	
	public void closeClient();
	
	public void updateUser(User user);
	
	public void onUpdateResult(int result);
	
	public void coerceOffLine();
	
	public void getHistoryNumbers();
	
	public void saveHistoryNumbers();
	
	public void saveJICC(Vector<String> jicc);
	
	public void saveIP(String ip);
	
	public String[] getJICC();
	
	public String getIP();
	
	public void clearInfo();
}
